/**
 * Created by imouze on 2017-10-26.
 */
module.exports = {
    'GET /': async (ctx, next) => {
        if(!ctx.cookies.get('SESSIONID')){
            ctx.redirect('/login');
            return;
        }
        
        await ctx.render('index.html', {
            "SESSIONID": ctx.cookies.get('SESSIONID')
        });
    }
};